package priv.yiyuan.example.design.bridge;

/**
 * 支付方式
 * <p>
 * 抽象部分
 *
 * @author YiYuan
 * @data 2025/8/5
 * @apoNote
 */
public abstract class PaymentMethod {

    protected PaymentGateway paymentGateway;

    protected PaymentMethod(PaymentGateway paymentGateway) {
        this.paymentGateway = paymentGateway;
    }

    public abstract boolean pay(double amount);

    public abstract boolean refund(double amount);
}
